Skip to content

Conversation

@iuwqyir
Copy link
Contributor

@iuwqyir iuwqyir commented Mar 7, 2025

TL;DR

Added ForceConsistentData: true to query filters in block deletion operations.

What changed?

Modified the query filters in deleteBlocks, deleteLogs, deleteTransactions, and deleteTraces functions to include ForceConsistentData: true parameter when retrieving data before deletion.

How to test?

  1. Attempt to delete blocks and their associated data
  2. Verify that the deletion operations complete successfully
  3. Confirm that all related data (logs, transactions, traces) is consistently deleted

Why make this change?

Ensures data consistency during block deletion operations by forcing the query to return complete and consistent datasets before performing deletions. This prevents potential partial or inconsistent data deletions that could corrupt the database state.

Copy link
Contributor Author

iuwqyir commented Mar 7, 2025

@iuwqyir iuwqyir requested a review from a team March 7, 2025 18:40
@iuwqyir iuwqyir marked this pull request as ready for review March 7, 2025 18:40
@iuwqyir iuwqyir force-pushed the 03-07-use_contract_api_as_a_fallback_for_decoding_if_signature_based_fails branch 2 times, most recently from e9a8eb5 to 7c49c60 Compare March 10, 2025 16:09
@iuwqyir iuwqyir force-pushed the 03-07-use_consistent_read_when_deleting_data branch from 19d7309 to b3862b4 Compare March 10, 2025 16:09
@iuwqyir iuwqyir changed the base branch from 03-07-use_contract_api_as_a_fallback_for_decoding_if_signature_based_fails to graphite-base/171 March 10, 2025 16:10
@iuwqyir iuwqyir force-pushed the 03-07-use_consistent_read_when_deleting_data branch from b3862b4 to d55e6be Compare March 10, 2025 16:10
@iuwqyir iuwqyir changed the base branch from graphite-base/171 to main March 10, 2025 16:11
@iuwqyir iuwqyir force-pushed the 03-07-use_consistent_read_when_deleting_data branch from d55e6be to 1f32c29 Compare March 10, 2025 16:11
@iuwqyir iuwqyir merged commit b500ad4 into main Mar 10, 2025
5 checks passed
@iuwqyir iuwqyir deleted the 03-07-use_consistent_read_when_deleting_data branch March 10, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants